﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestCommonWindow.Common
{
    public class ConfigInfo
    {
        public List<Emulator> EmulatorInfos { get; set; }
        public SqlParameter SqlParameterInfo { get; set; }
    }
    public class Emulator
    {
        public string Name { get; set; }
        public int ClockRateEnd { get; set; } 
        public List<Part> PartInfos { get; set; }
    }
    public class Part
    {
        public string PartNumber { get; set; }
        public string SlaveAddress { get; set; }
        public List<Register> RegisterInfos { get; set; }
    }
    public class Register
    {
        public bool IsTestItem { get; set; }
        public int UpperLimit { get; set; }
        public int LowerLimit { get; set; }
        public string RegisterName { get; set; }
        public string Address { get; set; }
        public string Description { get; set; }
        public int StartBitField { get; set; }
        public int StopBitField { get; set; }
    }
    //数据库参数
    public class SqlParameter
    {
        //服务器
        public string Server { get; set; }
        //数据库
        public string Database { get; set; }
        //用户名
        public string UserId { get; set; }
        //密码
        public string Password { get; set; }
    }
}
